package com.qnbc.mystery.domain;

/**
 * @author gzj
 * @description 奖品
 * @date 2024/2/20 09:30
 */

public class ItemPrize {

        private String name;

        private double probability;

        private int quantity;

        public ItemPrize(String name, double probability, int quantity) {
            this.name = name;
            this.probability = probability;
            this.quantity = quantity;
        }

        public String getName() {
            return name;
        }

        public double getProbability() {
            return probability;
        }

        public int getQuantity() {
            return quantity;
        }

        public void decrementQuantity() {
            this.quantity--;
        }
}
